home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / cdity / yak158src.lha / code.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-21  |  928 b   |  43 lines

  1. #ifndef CODE_H
  2. #define CODE_H
  3.  
  4.  
  5. #ifndef INTUITION_INTUITIONBASE_H
  6. #include <intuition/intuitionbase.h>
  7. #endif
  8.  
  9. /* Compiler specific stuff */
  10.  
  11. #ifdef _DCC             /* DICE */
  12.  
  13. #  define __AMIGADATE__ "("__DATE__")"
  14.  
  15. #  define ASM
  16. #  define SAVEDS       __geta4 
  17. #  define STACKARGS    __stkargs
  18. #  define WBMsg        _WBMsg
  19. #  define REG(x)       __ ## x
  20.   
  21. #  define MAIN         _main
  22.  
  23. #else                           /* SAS */
  24.  
  25. #  define ASM          __asm
  26. #  define SAVEDS       __saveds
  27. #  define STACKARGS    __stdargs
  28. #  define WBMsg        _WBenchMsg
  29. #  define REG(x)       register __ ## x
  30.  
  31. #  define MAIN         __main
  32.  
  33. #endif
  34.  
  35.  
  36. #define AW   ((struct IntuitionBase *)IntuitionBase)->ActiveWindow
  37. #define AWS  ((struct IntuitionBase *)IntuitionBase)->ActiveWindow->WScreen
  38. #define AS   ((struct IntuitionBase *)IntuitionBase)->ActiveScreen
  39. #define FS   ((struct IntuitionBase *)IntuitionBase)->FirstScreen
  40.  
  41.  
  42. #endif
  43.